Repository navigation
Install pinned Goblin runtimes for local sandboxes - #35
Conversation
|
@the-adaptile please review the local runtime distribution changes. The companion PRs are adapt/platform#269 (download proxy), adapt/goblin#155 (signed/notarized publication and release identity), and #35 (installer, draft until the first real artifact pin). Please check the archive/install boundaries, signing/publication gates, and compatibility behavior across the three contracts. |
There was a problem hiding this comment.
Confidence Score: 4/5
Summary
Rechecked unchanged e25d8e0: no actionable findings; the real-pin gate is satisfied. Previously executed checks passed, including 158 Rust tests, both-archive verification, Linux installation and offline reuse. Publication is CI-confirmed; Apple Silicon lifecycle acceptance remains author-reported.
Deployed verification not applicable: adapt/platform-cli is outside the adapt/adapt and adapt/platform preview pilot. No webhook sent. Native VM execution and macOS behavior were not independently retested here.
Important Files Changed
| File | Changes |
|---|---|
| runtime-lock.json | Both published archive hashes independently verified against the checked-in pin. |
| src/runtime/bundle.rs | Strict manifest, archive-entry, file-hash, permission, and cache verification. |
| src/runtime/install.rs | Serialized downloads and staged installation; real Linux installation and offline reuse previously passed. |
| src/runtime/pin.rs | Shared strict lock validator for runtime installation and release tooling. |
| xtask/src/main.rs | Verifies both archive downloads before atomically replacing the source pin. |
| src/local_runtime.rs | Managed bootstrap and manager reuse; local ABI/state compatibility enforcement remains explicitly deferred. |
| .github/workflows/ci.yml | Workspace tests and nonempty-pin gates before CLI publication. |
| docs/cli-reference.md | Documents managed runtime behavior and the existing Unix socket path-length constraint. |
Run info
| Field | ID |
|---|---|
| Agent | 0d6ccd7e-b62f-4075-a561-199d1a7b1bf0 |
| Automation | 1fbe37ac-ca54-4b0b-9fea-80055702da90 |
| Run | 7b081c04-6b04-4e70-9553-df00bb34eaa8 |
Reviewed: fab99b3-e25d8e0 · ↻ Re-run review
|
@the-adaptile Please review the updated heads of adapt/goblin#155 and #35 again. Goblin now publishes automatically after each successful main CI run, with every build pinned to that exact source revision and the tested Linux guest artifacts reused. The new signing/publication/pinning tools and tests are Rust xtasks. The CLI shares its pin validator with xtask, and its macOS nonblocking HTTP test fixture is fixed. Per the requested scope, local ABI/state compatibility enforcement is deferred. The runtime lock now contains only format, revision, and target archive size/SHA-256 plus manifest SHA-256. Existing fleet bundle metadata and the Platform download route in adapt/platform#269 are unchanged. Signing, notarization, native qualification, and immutable publication gates remain mandatory. |
|
@the-adaptile please review again. The real Goblin runtime has now published successfully, and this PR pins revision Real Apple Silicon acceptance passed through The long temporary path used in the first acceptance attempt exceeded Goblin's existing Unix socket path limit; the short-path run passed and the limitation is documented. The draft gate for a real runtime pin is now satisfied. |
Local commands can now download and verify a pinned Goblin runtime when they need to start the local manager. Add
adapt runtime installfor prefetching and read-onlyadapt runtime status; both work before cloud configuration or authentication. Keep--runtime-dirandADAPT_LOCAL_RUNTIMEas development overrides.The checked-in pin selects Goblin
4125721e6a9697f2ff16fb4a2bc263a6e80821bb, whose runtime publication succeeded. Both immutable archives were downloaded through the deployed Platform endpoint and verified before updating the pin. The macOS bundle has Developer ID signatures and accepted notarization; the Linux bundle passed the publisher's KVM qualification.The installer verifies archive size/SHA-256 and the pinned manifest, rejects unexpected entries and links, preserves executable modes, serializes concurrent installs, and atomically publishes private versioned directories. Cached files are verified before reuse. Downloads honor
--timeout. Running managers are reused and old runtime directories are retained for VM references. Local ABI and persisted-state compatibility enforcement is deferred.cargo xtask pin-runtime REVISIONverifies both published archives before atomically updating the source pin. The task andadaptshare one Rust pin validator. CLI publication requires a nonempty valid pin. CI tests and lints the workspace on all five host targets; the macOS HTTP fixture switches accepted sockets to blocking mode to fix its intermittent concurrent-install failure.Validation:
doctor, hypervisor smoke, and guest-boot qualification. The full CLI-managed image/exec lifecycle was exercised locally on Apple Silicon.The initial Mac acceptance attempt hit Goblin's existing Unix socket path limit with a long temporary state directory. Retrying with a short path passed; the CLI reference now documents that constraint.